using System.Threading.Tasks;
using JlPay.Sdk.Core;
using JlPay.Sdk.Models.Marketing;

namespace JlPay.Sdk.Services.Marketing
{
    /// <summary>
    /// 商户活动新增服务
    /// </summary>
    public class MerchantActivityAddService : BaseService
    {
        /// <summary>
        /// 创建商户活动新增服务
        /// </summary>
        /// <param name="config">配置对象</param>
        public MerchantActivityAddService(Config config) : base(config)
        {
        }

        /// <summary>
        /// 商户活动新增接口
        /// </summary>
        /// <param name="request">请求对象</param>
        /// <returns>响应对象</returns>
        public async Task<MerchantActivityAddResponse> MerchantActivityAddAsync(MerchantActivityAddRequest request)
        {
            return await PostAsync<MerchantActivityAddRequest, MerchantActivityAddResponse>(request, request.Path());
        }
    }
} 